package com.dhsc.local.dao.impl.ywzj.kbpzgl.pzbdlslr;

import com.dhsc.domain.ywzx.kbpzgl.PzbdlslrVo;
import com.dhsc.domain.ywzx.kbpzgl.WdlysqlrVo;
import com.dhsc.domain.ywzx.kbpzgl.WdpzscwjVo;
import com.dhsc.local.dao.ywzj.kbpzgl.pzbdlslr.IPzbdlslrDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 凭证变动流水录入
 * @date 2024/8/26 10:33
 */
@Repository("pzbdlslrDao")
public class PzbdlslrDaoImpl implements IPzbdlslrDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<PzbdlslrVo> queryWdpzrkinfo(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryWdpzrkinfo",p);
    }

    @Override
    public int saveLsd(PzbdlslrVo p) {
        return localSqlSessionTemplate.insert("PzbdlslrMapper.saveLsd",p);
    }

    @Override
    public PzbdlslrVo queryNewSqdbh(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.queryNewSqdbh",p);
    }

    @Override
    public int saveLsdLsmx(PzbdlslrVo p) {
        return localSqlSessionTemplate.insert("PzbdlslrMapper.saveLsdLsmx",p);
    }

    @Override
    public List<WdlysqlrVo> queryPzlsmx(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryPzlsmx",p);
    }

    @Override
    public List<WdlysqlrVo> queryWdrkPzlxTxtdm(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryWdrkPzlxTxtdm",w);
    }

    @Override
    public int updateWdpzrkXxSqsl(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkXxSqsl",p);
    }

    @Override
    public int updateWdpzrkXxBz(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkXxBz",p);
    }

    @Override
    public int updateWdpzrkXxBz1(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkXxBz1",p);
    }

    @Override
    public int querySftxbhfw(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.querySftxbhfw",p);
    }

    @Override
    public int queryHjSqsl(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.queryHjSqsl",p);
    }

    @Override
    public int updateWdpzrkZt(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkZt",p);
    }

    @Override
    public int deleteLsmx(PzbdlslrVo p) {
        return localSqlSessionTemplate.delete("PzbdlslrMapper.deleteLsmx",p);
    }

    @Override
    public int deleteBdls(PzbdlslrVo p) {
        return localSqlSessionTemplate.delete("PzbdlslrMapper.deleteBdls",p);
    }

    @Override
    public int updateThBdls(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateThBdls",p);
    }

    @Override
    public List<PzbdlslrVo> queryWdpzrkinfos(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryWdpzrkinfos",p);
    }

    @Override
    public int updateWdpzrkXxLKhh(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkXxLKhh",p);
    }

    @Override
    public int updateWdpzrkXxDryyb(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkXxDryyb",p);
    }

    @Override
    public int updateWdpzrkXxJdr(PzbdlslrVo p) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkXxJdr",p);
    }

    @Override
    public int WdpzScwj(WdpzscwjVo w) {
        return localSqlSessionTemplate.insert("PzbdlslrMapper.WdpzScwj",w);
    }

    @Override
    public int queryPzbdlsScwj(WdpzscwjVo w) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.queryPzbdlsScwj",w);
    }

    @Override
    public int updateWdpzrkScwjmc(WdpzscwjVo w) {
        return localSqlSessionTemplate.update("PzbdlslrMapper.updateWdpzrkScwjmc",w);
    }

    @Override
    public List <PzbdlslrVo> querySfsctp(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.querySfsctp",p);
    }

    @Override
    public void callPROCPZZK() {
        localSqlSessionTemplate.selectOne("PzbdlslrMapper.callPROCPZZK");
    }

    @Override
    public int querySfbxpzbh(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.querySfbxpzbh",p);
    }

    @Override
    public int querySflrKhh(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.querySflrKhh",p);
    }

    @Override
    public int deleteScwj(PzbdlslrVo p) {
        return localSqlSessionTemplate.delete("PzbdlslrMapper.deleteScwj",p);
    }

    @Override
    public List<PzbdlslrVo> querySfsctps(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.querySfsctps",p);
    }

    @Override
    public List<PzbdlslrVo> queryDryybxx(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryDryybxx",p);

    }

    @Override
    public List<PzbdlslrVo> queryJdrxx(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryJdrxx",p);

    }

    @Override
    public List<PzbdlslrVo> queryFbyybxx(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryFbyybxx",p);
    }

    @Override
    public List<PzbdlslrVo> queryYwzxGsjgxx(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.queryYwzxGsjgxx",p);
    }

    @Override
    public List<PzbdlslrVo> querySfbxBhbz(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectList("PzbdlslrMapper.querySfbxBhbz",p);
    }

    @Override
    public int querySfbxpzbhs(PzbdlslrVo p) {
        return localSqlSessionTemplate.selectOne("PzbdlslrMapper.querySfbxpzbhs",p);
    }
}
